package com.xkdx.guangguang.module.util;

import android.content.Context;
import android.content.SharedPreferences;

public class BaseSharePrefenceUtil {
	protected Context context;
	protected SharedPreferences sp;
	protected SharedPreferences.Editor editor;

	public BaseSharePrefenceUtil(Context context, String name) {
		this.context = context;
		if (context != null) {
			sp = context.getSharedPreferences(name, Context.MODE_PRIVATE);
			editor = sp.edit();
		}
	}

	public void clear() {
		editor.clear();
		editor.commit();
	}
}
